package top.asked.wdy_cdftx_app;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

	
	private UpdateManager mUpdateManager;  
    @Override  
    public void onCreate(Bundle savedInstanceState) {  
        super.onCreate(savedInstanceState);  
        setContentView(R.layout.activity_main);  
          
        //这里来检测版本是否需要更新  
        mUpdateManager = new UpdateManager(this);  
        mUpdateManager.checkUpdateInfo();
        
        Button button01 = (Button) findViewById(R.id.Buttontest); 
        button01.setOnClickListener(new Button.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(MainActivity.this, NewsActivity.class);
                startActivity(intent);
                MainActivity.this.finish();
            }
        });
        
    }       
    
   



}
